//
//  UIView+MSView.h
//  MuRenHe
//
//  Created by mls on 2021/5/23.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (MSView)

@property (nonatomic, assign) CGFloat   ms_x;
@property (nonatomic, assign) CGFloat   ms_y;
@property (nonatomic, assign) CGFloat   ms_centerX;
@property (nonatomic, assign) CGFloat   ms_centerY;
@property (nonatomic, assign) CGFloat   ms_width;
@property (nonatomic, assign) CGFloat   ms_height;
@property (nonatomic, assign) CGSize    ms_size;
@property (nonatomic, strong) UILabel   *ms_label;
@property (nonatomic, strong) UILabel   *ms_badgeView;

/** 设置label内向偏移量 */
- (void)ms_setLabelEdges:(UIEdgeInsets)edge;
/** 截图 */
- (UIImage *)ms_screenShot;
/** 根据view生成图片（opaque 表示是否是非透明的。如果需要显示半透明效果，需要传NO，否则传YES.） */
- (UIImage *)ms_screenShotWithSize:(CGSize)size
                            opaque:(BOOL)opaque;

@end

NS_ASSUME_NONNULL_END
